package com.test.springboot3.springboot3testdemo1.dao;

import com.test.springboot3.springboot3testdemo1.entity.UserEntity;
import java.util.Optional;
import org.apache.ibatis.annotations.Mapper;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： liuziyang
 * @date： 2024/8/5-下午3:27
 * @description：
 * @modifiedBy：
 * @version: 1.0
 */
@Mapper
public interface UserMapper {

  @org.apache.ibatis.annotations.Select(
      "select id, username, phone, status  from t_user where id = #{id}")
  Optional<UserEntity> findById(Long id);
}
